package com.seckill.dao;

import com.seckill.entity.Success;
import org.apache.ibatis.annotations.Param;

/**
 * @Creation_time 2017/9/6
 * @Theme 秒杀成功表Dao层接口
 * @Autor Xiao Yiyun
 */
public interface SuccessDao {

    //插入购买明细，通过seckill_id+user_phone的联合索引可过滤重复
    public int insertSuccess(@Param("seckill_id") int seckill_id, @Param("user_phone") String user_phone)
            throws Exception;
    //根据秒杀商品Id查询记录
    public Success selectSuccessBySeckillId(@Param("seckill_id") int seckill_id) throws Exception;
}